﻿
@using WikeSoft.WorkFlowEngine.Entities
@using WikeSoft.WorkFlowEngine.Models

@{
    ViewBag.Title = "调证审核";
    Layout = "~/Views/Shared/_Form.cshtml";
    String prevUrl = string.Empty;
    string instanceId = Request["instanceId"];
    if (Request.UrlReferrer != null)
    {
        prevUrl = Request.UrlReferrer.ToString();
    }
}


@section scripts{
    <script type="text/javascript">


        function setCondition(val) {
            $("#Condition").val(val);
            return true;
        }


    </script>

}


@if (ViewBag.Historys != null && ViewBag.Historys.Count > 0)
{
    <form class="form-horizontal" method="post">
        <div class="form-group">
            <label class="col-sm-2 control-label">处理记录</label>
            <div class="col-sm-10">
                <table class="table table-striped">
                    <tr>
                        <th>操作环节</th>
                        <th>处理人</th>
                        <th>时间</th>
                        <th>处理意见</th>
                    </tr>

                    @foreach (TaskInstance data in ViewBag.Historys)
                        {
                        <tr>
                            <td>@data.NodeDefName</td>
                            <td>@data.DealUser</td>
                            <td>@(data.DealDate.HasValue ? data.DealDate.Value.ToString("yyyy-MM-dd HH:mm:ss") : "")</td>
                            <td>@data.DealRemark</td>
                        </tr>
                        }

                </table>

            </div>
        </div>

    </form>
}



<form class="form-horizontal" method="post">


    <div class="form-group">
        <label class="col-sm-2 control-label">流程图</label>
        <div class="col-sm-10">
            <div class="form-group">
                <img src="@Url.Action("Pic","WorkFlowInstance")?flowId=@instanceId&r=@Guid.NewGuid().ToString()" />
            </div>

        </div>
    </div>

</form>



